package com.cui.demoshiro.service.role.impl;

import com.cui.demoshiro.dao.role.RoleDao;
import com.cui.demoshiro.pojo.Role;
import com.cui.demoshiro.service.role.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao ;

    @Override
    public List<Role> getAllRoles() {
        return roleDao.getAllRoles();
    }

    @Override
    public Role getRoleInfoById(int rid) {
        return roleDao.getRoleInfoById(rid);
    }
}
